package com.jt.consumer.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

//name和value是一样的，底层代码有说明
@FeignClient(name = "sca-provider",contextId = "remoteOtherService")
public interface RemoteOtherService {

    @GetMapping("/provider/echo/{string}")
    String echoMassage(@PathVariable("string") String string);
}
